package com.wy.panda.controller.vo;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
import com.wy.panda.constant.UserTypeEnum;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 用户响应领域模型
 * @author wangyuan
 * @since 2021-03-27 13:27:02
 */
@ApiModel("用户")
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@SuperBuilder
public class SysUserVO implements Serializable {

    private static final long serialVersionUID = -88011750900752624L;
    
    @ApiModelProperty("用户主键")
    private Long id;
    
    @ApiModelProperty("用户名")
    private String username;
    
    @ApiModelProperty("密码")
    private String password;
    
    @ApiModelProperty("用户类型：0，系统管理员")
    @JsonFormat(shape = Shape.OBJECT)
    private UserTypeEnum userType;
    
    @ApiModelProperty("账号是否锁定：0否，1是")
    private Integer isLocked;
    
    @ApiModelProperty("账号是否过期：0否，1是")
    private Integer isExpired;
    
    @ApiModelProperty("账号状态：0禁用，1启用")
    private Integer isEnabled;
    
    @ApiModelProperty("备注")
    private String remark;
    
    @ApiModelProperty("创建者")
    private String createdUser;
    
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;
    
    @ApiModelProperty("更新者")
    private String updatedUser;
    
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;
    
}